﻿@model CustomerMessageModel
@using Nop.Web.Models.Customer;
@using Nop.Web.Extensions;
@{
    Layout = "~/Themes/CNet/Shared/_HomePage_SubTwo.cshtml";
    //title
    Html.AddTitleParts(T("PageTitle.Account").Text);
}
@using Nop.Web.Framework;
@section userInfo
{
    <div class="user_name_left">
<p><b>@Model.CustomerModel.Username</b><br />
手机号码：@Model.CustomerModel.Phone<br />
地址：@Model.CustomerModel.StreetAddress</p>
</div>
@*<div class="user_name_right">设置</div>*@
}
@section left
{
    @Html.Partial("MyMenuNavigation", new CustomerNavigationModel(), new ViewDataDictionary())
}
@section right
{
<div class="user_right_xx">
     @foreach (CustomerMessageModel m in Model.CustomerMessages)
     {
       <ul>
        <li>@(m.CreatedOnUtc == null ? "" : m.CreatedOnUtc.ToString())</li>
        <li>
        @if(string.IsNullOrEmpty(m.Body))
        {
            @Html.Raw("");
        }
        else
        {
            @Html.Raw(m.Body);   
        }
         
</li>
        <li><span class="user_xx_line"></span></li>
       </ul>
     }
       <div class="clearfix">
<div class="pagin fr">
@{
var pager = Html.Pager(new Nop.Web.Models.Common.PagerModel()
            {
                PageSize = Model.TopicPageSize,
                TotalRecords = Model.TopicTotalRecords,
                PageIndex = Model.TopicPageIndex,
                ShowTotalSummary = false,
                RouteActionName = "MyMessageRoute",
                UseRouteLinks = true,
                RouteValues = new Nop.Web.Models.Common.RouteValues { page=Model.TopicPageIndex  }
            });
        }
        @pager
</div>
</div>
 </div>
}